<template>
    <div id="myServicer">
        <div class="top">
            <div class="title">
                <span>徐银行，你好！</span>
                <span>您需要什么帮助呢</span>
            </div>
            <div class="img">
                <img src="" alt="" />
            </div>
        </div>
        <div class="content">
            <div class="item" v-for="(item, index) in list">
                <div class="title">{{ item.title }}</div>
                <div class="bottom">
                    <div class="avatar"><img :src="item.avatar" alt="" /></div>
                    <div class="right">
                        <div class="name">{{ item.name }}</div>
                        <div class="info">
                            <div class="info-detail">
                                <img
                                    src="../../../assets/img/About_Us.png"
                                    alt=""
                                />
                                <span>{{ item.phone }}</span>
                            </div>
                            <div class="info-detail">
                                <img
                                    src="../../../assets/img/About_Us.png"
                                    alt=""
                                />
                                <span>{{ item.wechat }}</span>
                                <!-- <span class="col-9">暂无</span> -->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        props: [], // 父辈向子辈传参
        name: 'myServicer',
        components: { // 组件的引用

        },
        data() {
            return {
                list: [
                    {
                        title: '客户经理',
                        avatar: 'https://ts1.cn.mm.bing.net/th?id=OIP-C.BXf0GWLGTkkmKs-J7-SWVAAAAA&w=250&h=250&c=8&rs=1&qlt=90&o=6&dpr=1.3&pid=3.1&rm=2',
                        name: '马化腾',
                        phone: '1919111111',
                        wechat: 'wxwewe'
                    },
                    {
                        title: '直属上级',
                        avatar: 'https://ts1.cn.mm.bing.net/th?id=OIP-C.BXf0GWLGTkkmKs-J7-SWVAAAAA&w=250&h=250&c=8&rs=1&qlt=90&o=6&dpr=1.3&pid=3.1&rm=2',
                        name: '马化腾',
                        phone: '1919111111',
                        wechat: 'wxwewe'
                    },
                    {
                        title: '官方客服',
                        avatar: 'https://ts1.cn.mm.bing.net/th?id=OIP-C.BXf0GWLGTkkmKs-J7-SWVAAAAA&w=250&h=250&c=8&rs=1&qlt=90&o=6&dpr=1.3&pid=3.1&rm=2',
                        name: '马化腾',
                        phone: '1919111111',
                        wechat: 'wxwewe'
                    },

                ]
            }
        },
        methods: {},
        computed: {},
        watch: {},
        created() { },
        mounted() { },
    }
</script>
    
<style scoped lang='scss'>
    #myServicer {
        .top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 375px;
            height: 113px;
            box-sizing: border-box;
            background: #ffffff;
            padding: 0 24px;
        }
        .title {
            font-weight: 500;
            font-size: 20px;
            color: #3d3d3d;
            line-height: 20px;
            display: flex;
            flex-direction: column;
        }
        .title span:nth-child(2) {
            font-weight: 400;
            font-size: 14px;
            color: #999999;
            line-height: 16px;
            margin-top: 12px;
        }
        .img {
            font-size: 0;
            & > img {
                width: 150px;
                height: 48px;
            }
        }

        .content {
            padding: 13px 15px 0;
            background-color: #ffffff;
            margin-top: 10px;
        }
        .item:not(:first-child) {
            margin-top: 16px;
        }
        .title {
            font-weight: 500;
            font-size: 16px;
            color: #121836;
            line-height: 16px;
            margin-bottom: 10px;
        }
        .bottom {
            width: 344px;
            height: 77px;
            border-radius: 10px 10px 10px 10px;
            border: 1px solid #eeeeee;
            box-sizing: border-box;
            padding: 13px 16px 16px 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .avatar {
            font-size: 0;
            margin-right: 12px;
            & > img {
                width: 48px;
                height: 48px;
                border-radius: 50%;
            }
        }
        .right {
            display: flex;
            flex-direction: column;
            flex: 1;
        }
        .name {
            font-weight: 500;
            font-size: 16px;
            color: #000000;
            line-height: 16px;
            margin-bottom: 13px;
        }
        .info {
            display: flex;
        }
        .info-detail {
            font-weight: 400;
            font-size: 12px;
            color: #626262;
            line-height: 16px;
            display: flex;
            align-items: center;
            margin-right: 10px;
            & > img {
                width: 16px;
                height: 16px;
                margin-right: 4px;
            }
        }
    }
</style>